﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Regist.aspx.cs" Inherits="stock.GuPiao.Regist" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link href="CSS/regesit.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<div class="bodyer_main">
    <div class="main_title">
      <div class="title_name">用户注册</div>
    </div>
    <div class="main_content">
      <div style="width:500px; margin:0 auto;"><!---->
       <div class="input_div"><div class="input_txt">用户名称:</div><div class="input_input"><input type="text" id="name" runat="server" class="input_200"/></div><div class="input_tip_1" >
        <asp:RequiredFieldValidator   ID="RequiredFieldValidator1" runat="server" 
               ErrorMessage="*" ControlToValidate="name"></asp:RequiredFieldValidator>
           <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ValidationExpression="^([\u4e00-\u9fa5]|[0-9_a-zA-Z]){3,}$"
               ErrorMessage="用户名长度需要大于2" ControlToValidate="name"></asp:RegularExpressionValidator>
           </div></div>
	  <div class="input_div"><div class="input_txt">用户密码:</div><div class="input_input"><input type="password" id="password"  runat="server" class="input_200"/></div><div class="input_tip_2">
          <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
              ErrorMessage="*" ControlToValidate="password"></asp:RequiredFieldValidator>
          <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" 
              ControlToValidate="password" ErrorMessage="长度大于6和只能为字母、数字或下划线" 
              ValidationExpression="^[0-9a-zA-z_]{6,}$"></asp:RegularExpressionValidator>
          </div></div>
	  <div class="input_div"><div class="input_txt">确认密码:</div><div class="input_input"><input type="password" id="rePassword"  runat="server" class="input_200"/></div><div class="input_tip_3">
          <asp:CompareValidator ID="CompareValidator1" runat="server" ErrorMessage="两次输入不相同" 
              ControlToCompare="password" ControlToValidate="rePassword"></asp:CompareValidator></div></div>
      <div class="input_div"><div class="input_txt"> 昵 称:</div><div class="input_input"><input type="text" id="nick"  runat="server" class="input_200"/></div><div class="input_tip_6">
          <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
              ControlToValidate="nick" ErrorMessage="*"></asp:RequiredFieldValidator>
          </div></div>
	  <div class="input_div"><div class="input_txt">用户邮箱:</div><div class="input_input"><input type="text" id="mail"  runat="server" class="input_200"/></div><div class="input_tip_4">
          <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
              ControlToValidate="mail" ErrorMessage="*"></asp:RequiredFieldValidator>
          建议用手机邮箱<asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" 
              ControlToValidate="mail" ErrorMessage="邮箱格式不对" 
              ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
          </div></div>
	  <div class="input_div"><div class="input_txt">用户电话:</div><div class="input_input"><input type="text" id="cellphone"  runat="server" class="input_200"/></div><div class="input_tip_5">
          <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" 
              ControlToValidate="cellphone" ErrorMessage="*"></asp:RequiredFieldValidator>
          巨大波动是用于提醒<asp:RegularExpressionValidator ID="RegularExpressionValidator4" runat="server" 
              ControlToValidate="cellphone" ErrorMessage="格式错误" 
              ValidationExpression="^((13[0-9])|(15[0-9])|(18[0,5-9])|(14[5,7]))[0-9]{8}$"></asp:RegularExpressionValidator>
          </div></div>
	  <div class="input_div"><div class="input_txt">验 证 码:</div><div class="input_input"><input type="text" id="code" runat="server" class="input_100"/></div><div class="input_img"><img src="CodeImage.ashx" title="" alt="特我网络验证" /></div><div class="input_tip_7"></div></div>
	  <div style="text-align:center;width:300px;">
          <asp:Button ID="Button1" runat="server" Text="注 册"  class="button_yellow_93"   onclick="Button1_Click" />
       </div>
     </div><!---->
    </div>
  </div>
</asp:Content>
